#ifndef ITEMMODEL_H
#define ITEMMODEL_H

#include <QObject>
#include <QAbstractListModel>
#include <QSize>
#include <QList>
#include "ItemData.h"


class ItemModel : public QAbstractListModel
{
    Q_OBJECT
public:
    ItemModel(QObject *parent = 0);

    int rowCount(const QModelIndex &parent) const;

    int columnCount(const QModelIndex &parent) const;

    QVariant data(const QModelIndex &index, int role) const;

    void add(QString name,WorkStatus sta);

    SeamTask *at(int index);

    void sync();
private:
    QList<SeamTask*> m_seamTaskList;

    int m_testNumber;


};

#endif // ITEMMODEL_H
